package com.ruoyi.gis.service.impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.gis.domain.Area;
import com.ruoyi.gis.domain.GisLayer;
import com.ruoyi.gis.mapper.AreaMapper;
import com.ruoyi.gis.mapper.GisLayerMapper;
import com.ruoyi.gis.service.IAreaService;
import com.ruoyi.gis.service.IGisLayerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 图层管理Service业务层处理
 *
 * @author rww
 * @date 2023-02-27
 */
@Service
public class AreaServiceImpl implements IAreaService
{
    @Autowired
    private AreaMapper areaMapper;

    @Override
    public List<Area> selectProvinceList() {
        return areaMapper.selectProvinceList();
    }

    @Override
    public List<Area> selectCityList(String province) {
        return areaMapper.selectCityList(province);
    }

    @Override
    public List<Area> selectDistrictList(String province,String city) {
        return areaMapper.selectDistrictList(province,city);
    }

    @Override
    public int insertArea(Area area) {
        return areaMapper.insertArea(area);
    }

    @Override
    public List<Area> selectAreaList(Area area) {
        return areaMapper.selectAreaList(area);
    }

    @Override
    public String selectWktByAreaId(String areaId) {
        return areaMapper.selectWktByAreaId(areaId);
    }
}
